package com.huxi.lang.exception;

/**
 * 值类型转换异常
 * 
 * @since 1.0
 * @version 1.0
 * @author jian.wu
 *
 */
public class ValueCastException extends ValueException {

	private static final long serialVersionUID = 1L;

	private Class<?> castType;
	private Object value;

	public ValueCastException(Class<?> castType, Object value, Throwable cause) {
		super("", cause);
	}

	public ValueCastException(Class<?> castType, Object value) {
		this(castType, value, null);
	}

	public Class<?> getCastType() {
		return castType;
	}

	@Override
	public Object getValue() {
		return value;
	}
}
